package com.snow.campuslink.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @author Gaosl
 * @className MinioConfig
 * @date 2021/3/17 14:02
 */
@Configuration
public class MinioConfig {
    private String endpoint="47.119.163.105";
    private Integer port=9000;
    private String accessKey="minio";
    private String secretKey="minio123";
    private static String imageBucket="image";

    @Bean
    public MinioClient minioClient() {
        return MinioClient.builder().endpoint(endpoint, port, false).credentials(accessKey, secretKey).build();
    }
}
